<div>
    <div style="position: relative;width: {{ widget.img_width }};height: {{ widget.img_height }};overflow: hidden ">
        <div class="stark-image-filed-container">
            {% if widget.img_src %}
                <img src="{{ widget.media_url }}{{ widget.img_src }}" alt="" style="width: {{ widget.img_width }};height: {{ widget.img_height }};">
            {% else %}
                <div class="stark-image-field-tips" style="line-height: {{ widget.img_height }}">
                    <i class="fa fa-cloud-upload" aria-hidden="true"></i>
                </div>
            {% endif %}
        </div>
        <input class="stark-image-field-input" class="c1" type="{{ widget.type }}" name="{{ widget.name }}"
                {% if widget.value != None %}
               value="{{ widget.value|stringformat:'s' }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
    </div>
    <div style="width:{{ widget.img_width }};text-align: center;font-size: 12px;margin-top: 3px;">
        <a href="javascript:void(0);" style="text-decoration: none; ">点击上传图片</a>
    </div>
</div>